package pro.lepers.portfolio.view.contents.portfolio.data.contents {
	import pro.lepers.portfolio.view.contents.portfolio.content.ThumbContent;
	import pro.lepers.portfolio.view.contents.portfolio.content.VideoContent;

	/**
	 * @author Pierre Lepers
	 */
	public class VideoContentData extends AbstractContentData {
		
		
		public function VideoContentData() {
			
		}
		
		
		public function get flvUrl () : String {
			return _flvUrl;
		}
		
		public function get thumbUrl () : String {
			return _thumbUrl;
		}

		override internal function _parse(datas : XML) : void {
			super._parse( datas );
			_flvUrl = datas.url.text( );
			_thumbUrl = datas.thumb.text();
		}
		
		override public function getView() : ThumbContent {
			return new VideoContent( this );
		}
		
		private var _flvUrl : String;
		private var _thumbUrl : String;
		
	}
}
